package com.icesoft.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
public class OrgTreeVO implements Serializable {

	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;
	private Date createTime;
	private String name;
	private Long sort;
	private Boolean status;
	private Boolean isLeaf = true;
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long pid;
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long companyId;
	private List<OrgTreeVO> children;
}
